#这个.pro文件就是Qt项目的工程文件，也是qmake工具构建时候的重要依据，类似于linux中的makefile
#qmake搭配.pro文件起到的作用就类似于makefile
#Qt Creator将这个过程中编译的细节都封装好，不需要用户过多的去关注，只需要运行就可以直接编译运行了
QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#期望用C++11来进行编译
CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

#这里描述了当前项目中，参与构建的文件集合
#就是编译器需要编译那些文件
#此处不需要手动修改，Qt Creator会自动维护好
SOURCES += \
    main.cpp \
    widget.cpp

HEADERS += \
    widget.h

FORMS += \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
